enum singleStatusCn{
    '待分配' = 1,
    '分配集印',
    '已集印',
    '待打单',
    '已打单'
}

enum singleStatusEn{
    'allocation' = 1,
    'printing',
    'printed',
    'printBil',
    'bill',

}

const statusIcon = {
    'allocation': 'icon-label_fill',
    'printing': 'icon-headlines_fill',
    'printed': 'icon-coupons_fill',
    'printBil': 'icon-dynamic_fill',
    'bill': 'icon-computer_fill',
}

const statusIcons = {
    'allocation': {
        icon: 'icon-label_fill',
        style: {color: 'red'}
    },
    'printing': {
        icon: 'icon-headlines_fill',
        style: {color: 'orange'}
    },
    'printed': {
        icon: 'icon-coupons_fill',
        style: {color: 'pink'}
    },
    'printBil': {
        icon: 'icon-dynamic_fill',
        style: {color: 'blud'}
    },
    'bill': {
        icon: 'icon-computer_fill',
        style: {color: '#ef2'}
    },
}



// 关键字转换
function transitionKey(key:string):string{
    let num = singleStatusCn[key] || singleStatusEn[key];
    let transitionKey = singleStatusEn[num] || singleStatusCn[num];

    return transitionKey;
}

// 获取状态icon
function getIconConf (key:string):string{
    return statusIcons[transitionKey(key)];
}


export {

    getIconConf,
    transitionKey,
    
}